<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('package_ids', function (Blueprint $table) {
            $table->engine  = 'InnoDB';
            $table->comment('包id标签');

            $table->increments('id');
            $table->integer('create_time')->comment('创建时间')->unsigned()->default(0);
            $table->string('name', 64)->comment('标签描述')->default('');
        });

        \Illuminate\Support\Facades\DB::statement("ALTER TABLE `package_ids` AUTO_INCREMENT=1001;");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('package_ids');
    }
};
